﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.ToolKits.Base.PageFactor
{
    /// <summary>
    /// 排序条件
    /// </summary>
    public class DataSort
    {
        /// <summary>
        /// 排序字段
        /// </summary>
        public string SortName { get; set; }
        /// <summary>
        /// 排序类型 0升序 1降序
        /// </summary>
        public SortType SortType { get; set; }
    }

    public enum SortType
    {
        /// <summary>
        /// 升序
        /// </summary>
        Asc,
        /// <summary>
        /// 降序
        /// </summary>
        Desc
    }
}
